class CreateBarangs < ActiveRecord::Migration
  def change
    create_table :barangs do |t|
      t.string :KodeBrg
      t.string :NamaBrg
      t.integer :Inactive
      t.integer :NonInventory
      t.integer :Paket
      t.string :Rak
      t.string :KodeDep
      t.string :KodeSup
      t.string :Unit
      t.decimal :HargaBeli
      t.decimal :HargaPokok
      t.decimal :DiscMax
      t.decimal :HargaGrosir
      t.decimal :HargaEceran
      t.decimal :ProfitGrosir
      t.decimal :ProfitEceran

      t.timestamps
    end
  end
end
